# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=python-patiencediff
pkgver=0.2.14
pkgrel=1
pkgdesc='Patiencediff Python and C implementations'
arch=(loong64 x86_64)
url=https://www.breezy-vcs.org/
license=(GPL2)
depends=(python)
makedepends=(
  git
  python-setuptools
)
_tag=84e7d1ccb8f623bc082a4412f6b8686523b57a0b
source=(git+https://github.com/breezy-team/patiencediff.git#tag=${_tag})
sha256sums=(SKIP)

pkgver() {
  cd patiencediff
  git describe --tags | sed 's/^v//'
}

build() {
  cd patiencediff
  python setup.py build
}

package() {
  cd patiencediff
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}

# vim: ts=2 sw=2 et:
